package com.example.demo.controller;

import com.example.demo.feignClient.StoreClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;

/**
 * @author user
 */
@RestController
public class IndexController {
    @Resource
    private StoreClient service2Client;

    @GetMapping("service2")
    public String service2() {
//        return "a";
        return service2Client.test("service-1");
    }
}
